package meihua.stopcarapp.presenter.contract;

import meihua.mylibrary.base.BaseModel;
import meihua.mylibrary.base.BasePresenter;
import meihua.stopcarapp.bean.result.MyWalletResult;
import meihua.stopcarapp.ui.BaseView;
import rx.Observable;

/**
 * Name: LGZ
 * Time: 2017/5/17.
 * Dec:
 */

public class MyWalletContract {

    public interface Model extends BaseModel {
        //获取我的钱包数据
        Observable<MyWalletResult> getMyWallet(String user_id);
    }

    public interface View extends BaseView {
        //返回获取的列表信息
        void returnMyWalletList(MyWalletResult myWallets);
    }

    public abstract static class Presenter extends BasePresenter<View, Model> {
        //发起获取列表请求
        public abstract void getMyWalletListRequest(String user_id );
    }

}
